home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group95b.txt
/
000037_icon-group-sender _Mon Jun 5 20:39:02 1995.msg
< prev
next >
Wrap
Internet Message Format
|
1995-09-18
|
1KB
Received: by cheltenham.cs.arizona.edu; Mon, 5 Jun 1995 16:20:47 MST
To: icon-group-l@cs.arizona.edu
Date: Mon, 5 Jun 1995 20:39:02 GMT
From: ka@socrates.hr.att.com (Kenneth Almquist)
Message-Id: <D9pw12.GDH@nntpa.cb.att.com>
Organization: AT&T
Sender: icon-group-request@cs.arizona.edu
References: <3qr2a1$afq@deci.mks.com>
Subject: Garbage collection vs files
Errors-To: icon-group-errors@cs.arizona.edu
> Most lisps will properly close files during garbage collection.
> Does iconx, or the code generated by iconc?
No, or at least it didn't last time I checked. To close a file in Icon,
you must call "close".
The problem with relying on garbage collection to close files is that if
your program opens files frequently, it may hit the limit on the maximum
number of open files between invocations of the garbage collector. If the
garbage collector is invoked by the open routine when the limit is hit,
the result may be an excessive number of garbage collections.
Kenneth Almquist